package com.xinziruo.crawl.domain.crawl;

import java.util.Map;

import com.xinziruo.crawl.infrastruture.util.Page;

/**
 * 
 * @author loudyn
 * 
 */
public interface CrawlApiObjectRepository {

	/**
	 * 
	 * @param entity
	 */
	void store(CrawlApiObject entity);

	/**
	 * 
	 * @param id
	 * @return
	 */
	CrawlApiObject get(String id);

	/**
	 * 
	 * @param page
	 * @param hql
	 * @param values
	 * @return
	 */
	Page<CrawlApiObject> queryPage(Page<CrawlApiObject> page, String hql, Map<String, Object> values);

	/**
	 * 
	 * @param entity
	 */
	void delete(CrawlApiObject entity);
}
